package Operation;

import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-04
 * Time: 23:09
 */
public class DisplayOperationOperation implements Ioperation{
    @Override
    public void work(Booklist booklist) {
        System.out.println("显示书籍");
        int currentsize = booklist.getUsedsize();
        for (int i = 0; i < currentsize; i++) {
            System.out.println(booklist.getBook(i));

        }
    }
}
